package com.huluobo.a2203kotlindouyindemo.mine

import androidx.lifecycle.MutableLiveData
import com.huluobo.base.bean.UserBean
import com.huluobo.base.viewmodel.BaseViewModel

/**
 *  Created by LC on 2024/7/13.
 */
class MineViewModel : BaseViewModel<MineRepo>() {
    val getUserInfoSuccess = MutableLiveData<UserBean>()
    val getUserInfoFailed = MutableLiveData<String>()

    fun getUserInfo(username: String) {
        repo.getUserInfo(username, getUserInfoSuccess, getUserInfoFailed)
    }

    override fun createRepo(): MineRepo = MineRepo()
}